package com.unicom.scg.scancodego.entity;

import java.util.ArrayList;
import java.util.List;

public class VOrdersExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public VOrdersExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSoIdIsNull() {
            addCriterion("so_id is null");
            return (Criteria) this;
        }

        public Criteria andSoIdIsNotNull() {
            addCriterion("so_id is not null");
            return (Criteria) this;
        }

        public Criteria andSoIdEqualTo(Integer value) {
            addCriterion("so_id =", value, "soId");
            return (Criteria) this;
        }

        public Criteria andSoIdNotEqualTo(Integer value) {
            addCriterion("so_id <>", value, "soId");
            return (Criteria) this;
        }

        public Criteria andSoIdGreaterThan(Integer value) {
            addCriterion("so_id >", value, "soId");
            return (Criteria) this;
        }

        public Criteria andSoIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("so_id >=", value, "soId");
            return (Criteria) this;
        }

        public Criteria andSoIdLessThan(Integer value) {
            addCriterion("so_id <", value, "soId");
            return (Criteria) this;
        }

        public Criteria andSoIdLessThanOrEqualTo(Integer value) {
            addCriterion("so_id <=", value, "soId");
            return (Criteria) this;
        }

        public Criteria andSoIdIn(List<Integer> values) {
            addCriterion("so_id in", values, "soId");
            return (Criteria) this;
        }

        public Criteria andSoIdNotIn(List<Integer> values) {
            addCriterion("so_id not in", values, "soId");
            return (Criteria) this;
        }

        public Criteria andSoIdBetween(Integer value1, Integer value2) {
            addCriterion("so_id between", value1, value2, "soId");
            return (Criteria) this;
        }

        public Criteria andSoIdNotBetween(Integer value1, Integer value2) {
            addCriterion("so_id not between", value1, value2, "soId");
            return (Criteria) this;
        }

        public Criteria andAddr6NameIsNull() {
            addCriterion("addr6_name is null");
            return (Criteria) this;
        }

        public Criteria andAddr6NameIsNotNull() {
            addCriterion("addr6_name is not null");
            return (Criteria) this;
        }

        public Criteria andAddr6NameEqualTo(String value) {
            addCriterion("addr6_name =", value, "addr6Name");
            return (Criteria) this;
        }

        public Criteria andAddr6NameNotEqualTo(String value) {
            addCriterion("addr6_name <>", value, "addr6Name");
            return (Criteria) this;
        }

        public Criteria andAddr6NameGreaterThan(String value) {
            addCriterion("addr6_name >", value, "addr6Name");
            return (Criteria) this;
        }

        public Criteria andAddr6NameGreaterThanOrEqualTo(String value) {
            addCriterion("addr6_name >=", value, "addr6Name");
            return (Criteria) this;
        }

        public Criteria andAddr6NameLessThan(String value) {
            addCriterion("addr6_name <", value, "addr6Name");
            return (Criteria) this;
        }

        public Criteria andAddr6NameLessThanOrEqualTo(String value) {
            addCriterion("addr6_name <=", value, "addr6Name");
            return (Criteria) this;
        }

        public Criteria andAddr6NameLike(String value) {
            addCriterion("addr6_name like", value, "addr6Name");
            return (Criteria) this;
        }

        public Criteria andAddr6NameNotLike(String value) {
            addCriterion("addr6_name not like", value, "addr6Name");
            return (Criteria) this;
        }

        public Criteria andAddr6NameIn(List<String> values) {
            addCriterion("addr6_name in", values, "addr6Name");
            return (Criteria) this;
        }

        public Criteria andAddr6NameNotIn(List<String> values) {
            addCriterion("addr6_name not in", values, "addr6Name");
            return (Criteria) this;
        }

        public Criteria andAddr6NameBetween(String value1, String value2) {
            addCriterion("addr6_name between", value1, value2, "addr6Name");
            return (Criteria) this;
        }

        public Criteria andAddr6NameNotBetween(String value1, String value2) {
            addCriterion("addr6_name not between", value1, value2, "addr6Name");
            return (Criteria) this;
        }

        public Criteria andAddr8NameIsNull() {
            addCriterion("addr8_name is null");
            return (Criteria) this;
        }

        public Criteria andAddr8NameIsNotNull() {
            addCriterion("addr8_name is not null");
            return (Criteria) this;
        }

        public Criteria andAddr8NameEqualTo(String value) {
            addCriterion("addr8_name =", value, "addr8Name");
            return (Criteria) this;
        }

        public Criteria andAddr8NameNotEqualTo(String value) {
            addCriterion("addr8_name <>", value, "addr8Name");
            return (Criteria) this;
        }

        public Criteria andAddr8NameGreaterThan(String value) {
            addCriterion("addr8_name >", value, "addr8Name");
            return (Criteria) this;
        }

        public Criteria andAddr8NameGreaterThanOrEqualTo(String value) {
            addCriterion("addr8_name >=", value, "addr8Name");
            return (Criteria) this;
        }

        public Criteria andAddr8NameLessThan(String value) {
            addCriterion("addr8_name <", value, "addr8Name");
            return (Criteria) this;
        }

        public Criteria andAddr8NameLessThanOrEqualTo(String value) {
            addCriterion("addr8_name <=", value, "addr8Name");
            return (Criteria) this;
        }

        public Criteria andAddr8NameLike(String value) {
            addCriterion("addr8_name like", value, "addr8Name");
            return (Criteria) this;
        }

        public Criteria andAddr8NameNotLike(String value) {
            addCriterion("addr8_name not like", value, "addr8Name");
            return (Criteria) this;
        }

        public Criteria andAddr8NameIn(List<String> values) {
            addCriterion("addr8_name in", values, "addr8Name");
            return (Criteria) this;
        }

        public Criteria andAddr8NameNotIn(List<String> values) {
            addCriterion("addr8_name not in", values, "addr8Name");
            return (Criteria) this;
        }

        public Criteria andAddr8NameBetween(String value1, String value2) {
            addCriterion("addr8_name between", value1, value2, "addr8Name");
            return (Criteria) this;
        }

        public Criteria andAddr8NameNotBetween(String value1, String value2) {
            addCriterion("addr8_name not between", value1, value2, "addr8Name");
            return (Criteria) this;
        }

        public Criteria andResidentIdIsNull() {
            addCriterion("resident_id is null");
            return (Criteria) this;
        }

        public Criteria andResidentIdIsNotNull() {
            addCriterion("resident_id is not null");
            return (Criteria) this;
        }

        public Criteria andResidentIdEqualTo(String value) {
            addCriterion("resident_id =", value, "residentId");
            return (Criteria) this;
        }

        public Criteria andResidentIdNotEqualTo(String value) {
            addCriterion("resident_id <>", value, "residentId");
            return (Criteria) this;
        }

        public Criteria andResidentIdGreaterThan(String value) {
            addCriterion("resident_id >", value, "residentId");
            return (Criteria) this;
        }

        public Criteria andResidentIdGreaterThanOrEqualTo(String value) {
            addCriterion("resident_id >=", value, "residentId");
            return (Criteria) this;
        }

        public Criteria andResidentIdLessThan(String value) {
            addCriterion("resident_id <", value, "residentId");
            return (Criteria) this;
        }

        public Criteria andResidentIdLessThanOrEqualTo(String value) {
            addCriterion("resident_id <=", value, "residentId");
            return (Criteria) this;
        }

        public Criteria andResidentIdLike(String value) {
            addCriterion("resident_id like", value, "residentId");
            return (Criteria) this;
        }

        public Criteria andResidentIdNotLike(String value) {
            addCriterion("resident_id not like", value, "residentId");
            return (Criteria) this;
        }

        public Criteria andResidentIdIn(List<String> values) {
            addCriterion("resident_id in", values, "residentId");
            return (Criteria) this;
        }

        public Criteria andResidentIdNotIn(List<String> values) {
            addCriterion("resident_id not in", values, "residentId");
            return (Criteria) this;
        }

        public Criteria andResidentIdBetween(String value1, String value2) {
            addCriterion("resident_id between", value1, value2, "residentId");
            return (Criteria) this;
        }

        public Criteria andResidentIdNotBetween(String value1, String value2) {
            addCriterion("resident_id not between", value1, value2, "residentId");
            return (Criteria) this;
        }

        public Criteria andProductNameIsNull() {
            addCriterion("product_name is null");
            return (Criteria) this;
        }

        public Criteria andProductNameIsNotNull() {
            addCriterion("product_name is not null");
            return (Criteria) this;
        }

        public Criteria andProductNameEqualTo(String value) {
            addCriterion("product_name =", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotEqualTo(String value) {
            addCriterion("product_name <>", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameGreaterThan(String value) {
            addCriterion("product_name >", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameGreaterThanOrEqualTo(String value) {
            addCriterion("product_name >=", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLessThan(String value) {
            addCriterion("product_name <", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLessThanOrEqualTo(String value) {
            addCriterion("product_name <=", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLike(String value) {
            addCriterion("product_name like", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotLike(String value) {
            addCriterion("product_name not like", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameIn(List<String> values) {
            addCriterion("product_name in", values, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotIn(List<String> values) {
            addCriterion("product_name not in", values, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameBetween(String value1, String value2) {
            addCriterion("product_name between", value1, value2, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotBetween(String value1, String value2) {
            addCriterion("product_name not between", value1, value2, "productName");
            return (Criteria) this;
        }

        public Criteria andContactsNameIsNull() {
            addCriterion("contacts_name is null");
            return (Criteria) this;
        }

        public Criteria andContactsNameIsNotNull() {
            addCriterion("contacts_name is not null");
            return (Criteria) this;
        }

        public Criteria andContactsNameEqualTo(String value) {
            addCriterion("contacts_name =", value, "contactsName");
            return (Criteria) this;
        }

        public Criteria andContactsNameNotEqualTo(String value) {
            addCriterion("contacts_name <>", value, "contactsName");
            return (Criteria) this;
        }

        public Criteria andContactsNameGreaterThan(String value) {
            addCriterion("contacts_name >", value, "contactsName");
            return (Criteria) this;
        }

        public Criteria andContactsNameGreaterThanOrEqualTo(String value) {
            addCriterion("contacts_name >=", value, "contactsName");
            return (Criteria) this;
        }

        public Criteria andContactsNameLessThan(String value) {
            addCriterion("contacts_name <", value, "contactsName");
            return (Criteria) this;
        }

        public Criteria andContactsNameLessThanOrEqualTo(String value) {
            addCriterion("contacts_name <=", value, "contactsName");
            return (Criteria) this;
        }

        public Criteria andContactsNameLike(String value) {
            addCriterion("contacts_name like", value, "contactsName");
            return (Criteria) this;
        }

        public Criteria andContactsNameNotLike(String value) {
            addCriterion("contacts_name not like", value, "contactsName");
            return (Criteria) this;
        }

        public Criteria andContactsNameIn(List<String> values) {
            addCriterion("contacts_name in", values, "contactsName");
            return (Criteria) this;
        }

        public Criteria andContactsNameNotIn(List<String> values) {
            addCriterion("contacts_name not in", values, "contactsName");
            return (Criteria) this;
        }

        public Criteria andContactsNameBetween(String value1, String value2) {
            addCriterion("contacts_name between", value1, value2, "contactsName");
            return (Criteria) this;
        }

        public Criteria andContactsNameNotBetween(String value1, String value2) {
            addCriterion("contacts_name not between", value1, value2, "contactsName");
            return (Criteria) this;
        }

        public Criteria andContactsPhoneIsNull() {
            addCriterion("contacts_phone is null");
            return (Criteria) this;
        }

        public Criteria andContactsPhoneIsNotNull() {
            addCriterion("contacts_phone is not null");
            return (Criteria) this;
        }

        public Criteria andContactsPhoneEqualTo(String value) {
            addCriterion("contacts_phone =", value, "contactsPhone");
            return (Criteria) this;
        }

        public Criteria andContactsPhoneNotEqualTo(String value) {
            addCriterion("contacts_phone <>", value, "contactsPhone");
            return (Criteria) this;
        }

        public Criteria andContactsPhoneGreaterThan(String value) {
            addCriterion("contacts_phone >", value, "contactsPhone");
            return (Criteria) this;
        }

        public Criteria andContactsPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("contacts_phone >=", value, "contactsPhone");
            return (Criteria) this;
        }

        public Criteria andContactsPhoneLessThan(String value) {
            addCriterion("contacts_phone <", value, "contactsPhone");
            return (Criteria) this;
        }

        public Criteria andContactsPhoneLessThanOrEqualTo(String value) {
            addCriterion("contacts_phone <=", value, "contactsPhone");
            return (Criteria) this;
        }

        public Criteria andContactsPhoneLike(String value) {
            addCriterion("contacts_phone like", value, "contactsPhone");
            return (Criteria) this;
        }

        public Criteria andContactsPhoneNotLike(String value) {
            addCriterion("contacts_phone not like", value, "contactsPhone");
            return (Criteria) this;
        }

        public Criteria andContactsPhoneIn(List<String> values) {
            addCriterion("contacts_phone in", values, "contactsPhone");
            return (Criteria) this;
        }

        public Criteria andContactsPhoneNotIn(List<String> values) {
            addCriterion("contacts_phone not in", values, "contactsPhone");
            return (Criteria) this;
        }

        public Criteria andContactsPhoneBetween(String value1, String value2) {
            addCriterion("contacts_phone between", value1, value2, "contactsPhone");
            return (Criteria) this;
        }

        public Criteria andContactsPhoneNotBetween(String value1, String value2) {
            addCriterion("contacts_phone not between", value1, value2, "contactsPhone");
            return (Criteria) this;
        }

        public Criteria andResidentImgBackIsNull() {
            addCriterion("resident_img_back is null");
            return (Criteria) this;
        }

        public Criteria andResidentImgBackIsNotNull() {
            addCriterion("resident_img_back is not null");
            return (Criteria) this;
        }

        public Criteria andResidentImgBackEqualTo(String value) {
            addCriterion("resident_img_back =", value, "residentImgBack");
            return (Criteria) this;
        }

        public Criteria andResidentImgBackNotEqualTo(String value) {
            addCriterion("resident_img_back <>", value, "residentImgBack");
            return (Criteria) this;
        }

        public Criteria andResidentImgBackGreaterThan(String value) {
            addCriterion("resident_img_back >", value, "residentImgBack");
            return (Criteria) this;
        }

        public Criteria andResidentImgBackGreaterThanOrEqualTo(String value) {
            addCriterion("resident_img_back >=", value, "residentImgBack");
            return (Criteria) this;
        }

        public Criteria andResidentImgBackLessThan(String value) {
            addCriterion("resident_img_back <", value, "residentImgBack");
            return (Criteria) this;
        }

        public Criteria andResidentImgBackLessThanOrEqualTo(String value) {
            addCriterion("resident_img_back <=", value, "residentImgBack");
            return (Criteria) this;
        }

        public Criteria andResidentImgBackLike(String value) {
            addCriterion("resident_img_back like", value, "residentImgBack");
            return (Criteria) this;
        }

        public Criteria andResidentImgBackNotLike(String value) {
            addCriterion("resident_img_back not like", value, "residentImgBack");
            return (Criteria) this;
        }

        public Criteria andResidentImgBackIn(List<String> values) {
            addCriterion("resident_img_back in", values, "residentImgBack");
            return (Criteria) this;
        }

        public Criteria andResidentImgBackNotIn(List<String> values) {
            addCriterion("resident_img_back not in", values, "residentImgBack");
            return (Criteria) this;
        }

        public Criteria andResidentImgBackBetween(String value1, String value2) {
            addCriterion("resident_img_back between", value1, value2, "residentImgBack");
            return (Criteria) this;
        }

        public Criteria andResidentImgBackNotBetween(String value1, String value2) {
            addCriterion("resident_img_back not between", value1, value2, "residentImgBack");
            return (Criteria) this;
        }

        public Criteria andResidentImgFaceIsNull() {
            addCriterion("resident_img_face is null");
            return (Criteria) this;
        }

        public Criteria andResidentImgFaceIsNotNull() {
            addCriterion("resident_img_face is not null");
            return (Criteria) this;
        }

        public Criteria andResidentImgFaceEqualTo(String value) {
            addCriterion("resident_img_face =", value, "residentImgFace");
            return (Criteria) this;
        }

        public Criteria andResidentImgFaceNotEqualTo(String value) {
            addCriterion("resident_img_face <>", value, "residentImgFace");
            return (Criteria) this;
        }

        public Criteria andResidentImgFaceGreaterThan(String value) {
            addCriterion("resident_img_face >", value, "residentImgFace");
            return (Criteria) this;
        }

        public Criteria andResidentImgFaceGreaterThanOrEqualTo(String value) {
            addCriterion("resident_img_face >=", value, "residentImgFace");
            return (Criteria) this;
        }

        public Criteria andResidentImgFaceLessThan(String value) {
            addCriterion("resident_img_face <", value, "residentImgFace");
            return (Criteria) this;
        }

        public Criteria andResidentImgFaceLessThanOrEqualTo(String value) {
            addCriterion("resident_img_face <=", value, "residentImgFace");
            return (Criteria) this;
        }

        public Criteria andResidentImgFaceLike(String value) {
            addCriterion("resident_img_face like", value, "residentImgFace");
            return (Criteria) this;
        }

        public Criteria andResidentImgFaceNotLike(String value) {
            addCriterion("resident_img_face not like", value, "residentImgFace");
            return (Criteria) this;
        }

        public Criteria andResidentImgFaceIn(List<String> values) {
            addCriterion("resident_img_face in", values, "residentImgFace");
            return (Criteria) this;
        }

        public Criteria andResidentImgFaceNotIn(List<String> values) {
            addCriterion("resident_img_face not in", values, "residentImgFace");
            return (Criteria) this;
        }

        public Criteria andResidentImgFaceBetween(String value1, String value2) {
            addCriterion("resident_img_face between", value1, value2, "residentImgFace");
            return (Criteria) this;
        }

        public Criteria andResidentImgFaceNotBetween(String value1, String value2) {
            addCriterion("resident_img_face not between", value1, value2, "residentImgFace");
            return (Criteria) this;
        }

        public Criteria andAddr8IdIsNull() {
            addCriterion("addr8_id is null");
            return (Criteria) this;
        }

        public Criteria andAddr8IdIsNotNull() {
            addCriterion("addr8_id is not null");
            return (Criteria) this;
        }

        public Criteria andAddr8IdEqualTo(Integer value) {
            addCriterion("addr8_id =", value, "addr8Id");
            return (Criteria) this;
        }

        public Criteria andAddr8IdNotEqualTo(Integer value) {
            addCriterion("addr8_id <>", value, "addr8Id");
            return (Criteria) this;
        }

        public Criteria andAddr8IdGreaterThan(Integer value) {
            addCriterion("addr8_id >", value, "addr8Id");
            return (Criteria) this;
        }

        public Criteria andAddr8IdGreaterThanOrEqualTo(Integer value) {
            addCriterion("addr8_id >=", value, "addr8Id");
            return (Criteria) this;
        }

        public Criteria andAddr8IdLessThan(Integer value) {
            addCriterion("addr8_id <", value, "addr8Id");
            return (Criteria) this;
        }

        public Criteria andAddr8IdLessThanOrEqualTo(Integer value) {
            addCriterion("addr8_id <=", value, "addr8Id");
            return (Criteria) this;
        }

        public Criteria andAddr8IdIn(List<Integer> values) {
            addCriterion("addr8_id in", values, "addr8Id");
            return (Criteria) this;
        }

        public Criteria andAddr8IdNotIn(List<Integer> values) {
            addCriterion("addr8_id not in", values, "addr8Id");
            return (Criteria) this;
        }

        public Criteria andAddr8IdBetween(Integer value1, Integer value2) {
            addCriterion("addr8_id between", value1, value2, "addr8Id");
            return (Criteria) this;
        }

        public Criteria andAddr8IdNotBetween(Integer value1, Integer value2) {
            addCriterion("addr8_id not between", value1, value2, "addr8Id");
            return (Criteria) this;
        }

        public Criteria andCustNameIsNull() {
            addCriterion("cust_name is null");
            return (Criteria) this;
        }

        public Criteria andCustNameIsNotNull() {
            addCriterion("cust_name is not null");
            return (Criteria) this;
        }

        public Criteria andCustNameEqualTo(String value) {
            addCriterion("cust_name =", value, "custName");
            return (Criteria) this;
        }

        public Criteria andCustNameNotEqualTo(String value) {
            addCriterion("cust_name <>", value, "custName");
            return (Criteria) this;
        }

        public Criteria andCustNameGreaterThan(String value) {
            addCriterion("cust_name >", value, "custName");
            return (Criteria) this;
        }

        public Criteria andCustNameGreaterThanOrEqualTo(String value) {
            addCriterion("cust_name >=", value, "custName");
            return (Criteria) this;
        }

        public Criteria andCustNameLessThan(String value) {
            addCriterion("cust_name <", value, "custName");
            return (Criteria) this;
        }

        public Criteria andCustNameLessThanOrEqualTo(String value) {
            addCriterion("cust_name <=", value, "custName");
            return (Criteria) this;
        }

        public Criteria andCustNameLike(String value) {
            addCriterion("cust_name like", value, "custName");
            return (Criteria) this;
        }

        public Criteria andCustNameNotLike(String value) {
            addCriterion("cust_name not like", value, "custName");
            return (Criteria) this;
        }

        public Criteria andCustNameIn(List<String> values) {
            addCriterion("cust_name in", values, "custName");
            return (Criteria) this;
        }

        public Criteria andCustNameNotIn(List<String> values) {
            addCriterion("cust_name not in", values, "custName");
            return (Criteria) this;
        }

        public Criteria andCustNameBetween(String value1, String value2) {
            addCriterion("cust_name between", value1, value2, "custName");
            return (Criteria) this;
        }

        public Criteria andCustNameNotBetween(String value1, String value2) {
            addCriterion("cust_name not between", value1, value2, "custName");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}